package de.sup.scs.prototyp.client.ui.toolbox;

import com.google.gwt.event.shared.EventBus;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.Presenter;
import com.gwtplatform.mvp.client.View;
import com.gwtplatform.mvp.client.annotations.NameToken;
import com.gwtplatform.mvp.client.annotations.ProxyCodeSplit;
import com.gwtplatform.mvp.client.proxy.ProxyPlace;
import com.gwtplatform.mvp.client.proxy.RevealContentEvent;
import de.sup.scs.prototyp.client.ui.graphic.pultdach.GraphicPDPresenter;

public class ToolBoxPresenter extends Presenter<ToolBoxPresenter.MyView, ToolBoxPresenter.MyProxy>{


    @ProxyCodeSplit
    @NameToken("toolbox")
    public interface MyProxy extends ProxyPlace<ToolBoxPresenter> {}

    public interface MyView extends View {}

    @Inject
    public ToolBoxPresenter(EventBus eventBus, MyView view, MyProxy proxy) {
        super(eventBus, view, proxy);
    }

    @Override
    protected void revealInParent() {
        RevealContentEvent.fire(this, GraphicPDPresenter.TOOLBOX, this);
    }
}
